home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0210.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1.5 KB  |  52 lines

  1. Hello everybody!
  2.  
  3. Like many others on this list I have recently switched to
  4. AMOS Pro thanks to the coverdisk of the Amiga Format
  5. magazine. I have also directly ordered the AMOS Pro
  6. compiler which I have received a few days ago. As the
  7. AP compiler manual stated that the compiler had been
  8. optimized compared to the AMOS Creator compiler, I have made
  9. a few simple benchmarks to test that. They are by no way
  10. extensive or very meaningful, but they might interest you anyway.
  11.  
  12. The benchmarks have been tested in the following way:
  13.  
  14. T=Timer
  15. For H=1 to 200000
  16.   A=B*16
  17. Next H
  18. PRINT Timer-T
  19.  
  20. The result is therefore the number of 1/50th seconds on
  21. my PAL Amiga 4000/40 25 MHz.
  22.  
  23. The most interesting thing is probably that the AP interpreter
  24. is about 10% slower than the AMOS interpreter, probably due to
  25. the higher number of commands it has to check all the time.
  26. You'll also see that the AP compiler is indeed faster than
  27. the AMOS Creator compiler, but the difference is only really
  28. significant in a few cases that have been specially optimized
  29. (A=B*16 is translated with the assembler shift commands as
  30. shown in the AP Compiler manual and the A#=B#^4 statement
  31. has probably been simplified to A#=B#*B#*B#*B#).
  32.  
  33.          UNCOMPILED    COMPILED CODE
  34.         AMOS    APro    A Comp    AP Comp
  35.  
  36. A=B*16        114    124    30    13
  37. A=B*C        123    133    31    30
  38. A=B/C        134    141    45    39
  39. A#=B#*C#    126    148    36    34
  40. A#=B#^4        318    296    222    147
  41. A#=Sin(B#)    135    139    54    50
  42.  
  43.  
  44. By the way: I would be interested to know the correspnding times
  45. on other Amiga machines (A1200, A500, 68030 systems etc.)
  46. Maybe some of you can check that...
  47.  
  48. Cheers,
  49.  
  50.     Chris
  51.  
  52.